package qlsl.androiddesign.activity.commonactivity;

import android.os.Bundle;
import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.constant.MessageConstant;
import qlsl.androiddesign.view.baseview.FunctionView;
import qlsl.androiddesign.view.subview.commonview.MemberResetPhoneView;

public class MemberResetPhoneActivity extends BaseActivity {

	private MemberResetPhoneView functionView;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		functionView = new MemberResetPhoneView(this);
	}

	public FunctionView<?> getFunctionView() {
		return functionView;
	}

	public void onNetWorkSucceed(String method, Object values) {
		if (method.equals("requestSMSCode")) {
			showToast(MessageConstant.MSG_SEND_SUCCESS);
			functionView.showData(values);
		} else {
			super.onNetWorkSucceed(method, values);
			functionView.setRefresh(true);
			finish();
		}
	}

}
